<script setup lang="ts">
import { KeepAlive } from 'vue'
import { RouterView, useRoute } from 'vue-router'
const route = useRoute()
console.log(route)
</script>

<template>
   <router-view v-slot="{ Component }">
    <keep-alive :max="3">
      <component :is="Component" />
    </keep-alive>
  </router-view>
</template>

<style lang="less">
body{
  background-color: var(--van-background);
}
</style>
